//
//  RegisterView.h
//  eticket
//
//  Created by AnhQuocNguyen on 4/15/13.
//  Copyright (c) 2013 SoinMedia. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "DropdownboxView.h"

@protocol registerViewDelegate;
@interface RegisterView : UIView<UITextFieldDelegate, UIScrollViewDelegate, dropdownboxViewDelegate>{
    
    BOOL _isCheckbox;
    
    IBOutlet UITextField *_txtEmail;
    IBOutlet UITextField *_txtPass;
    IBOutlet UITextField *_txtConfirmPass;
    IBOutlet UITextField *_txtFirstName;
    IBOutlet UITextField *_txtLastName;
    IBOutlet UITextField *_txtAddress;
    IBOutlet UITextField *_txtCity;
    
    IBOutlet UIButton *_btnCountry;
    IBOutlet UIButton *_btnCheckbox;
    IBOutlet UIButton *_btnSubmit;
    
    IBOutlet UILabel *_lbCountry;
    
    //Textfield
    UITextField *remClickText;
    NSString *tmpText;
    float firstContenOffset;
    
   
    
    //hud
    MBProgressHUD *mHud;
    BOOL mLoading;
    NSInteger _countTimeout;
    
    //Dropdownbox
    DropdownboxView *dropdown_Countries;
    BOOL _isClick;
    BOOL _finishCountries;
}
@property (nonatomic, assign) id <registerViewDelegate> registerViewDelegate;
@property (retain, nonatomic) IBOutlet UIScrollView *scrollParentView;


- (void)setupUI;

- (void)textFieldResignFirstResponder;

- (IBAction)btnRegister_Clicked:(id)sender;

- (IBAction)btnCheckbox_Clicked:(id)sender;

- (IBAction)btnDropdown_Clicked:(id)sender;
@end





@protocol registerViewDelegate <NSObject>

@optional
- (void)registerViewDidSeclectCancelRefesh:(RegisterView *)registerView;
@end


